{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "from selenium import webdriver\n",
    "from selenium.webdriver import ActionChains\n",
    "import time\n",
    "import random\n",
    "import time\n",
    "import requests"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 63,
   "metadata": {},
   "outputs": [],
   "source": [
    "def get_proxy_ip():\n",
    "    try:\n",
    "        zhima_ip = r'http://webapi.http.zhimacangku.com/getip?num=1&type=1&pro=&city=0&yys=0&port=1&pack=33850&ts=0&ys=0&cs=0&lb=1&sb=0&pb=4&mr=1&regions='\n",
    "        proxy = requests.get(zhima_ip).text[:-2]\n",
    "        time.sleep(1.5)\n",
    "        prox = {\n",
    "            'https': 'https://{}'.format(proxy),\n",
    "            'http': 'http://{}'.format(proxy)}\n",
    "        res = requests.get('http://2018.ip138.com/ic.asp', proxies=prox, timeout=10)\n",
    "        if res.status_code == 200:\n",
    "            return proxy.split(':')\n",
    "        else:\n",
    "            return get_proxy_ip()\n",
    "    except:\n",
    "        return get_proxy_ip()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 64,
   "metadata": {},
   "outputs": [],
   "source": [
    "proxy_url, port = get_proxy_ip()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 65,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "('122.4.47.205', '3937')"
      ]
     },
     "execution_count": 65,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "proxy_url, port"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 66,
   "metadata": {},
   "outputs": [],
   "source": [
    "fp = webdriver.FirefoxProfile()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 67,
   "metadata": {},
   "outputs": [],
   "source": [
    "fp.set_preference(\"general.useragent.override\", \"Mozilla/5.0 (Windows NT 10.0; …) Gecko/20100101 Firefox/63.0\")\n",
    "fp.set_preference('network.proxy.type', 1)\n",
    "fp.set_preference('network.proxy.http', proxy_url)\n",
    "fp.set_preference('network.proxy.http_port', int(port))\n",
    "fp.set_preference('network.proxy.ssl', proxy_url)\n",
    "fp.set_preference('network.proxy.ssl_port', int(port))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 68,
   "metadata": {},
   "outputs": [],
   "source": [
    "fp.update_preferences()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 69,
   "metadata": {},
   "outputs": [],
   "source": [
    "driver = webdriver.Firefox(firefox_profile=fp)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 70,
   "metadata": {},
   "outputs": [],
   "source": [
    "driver.get('http://2018.ip138.com/ic.asp')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 71,
   "metadata": {},
   "outputs": [],
   "source": [
    "driver.get('https://uniqlo.m.tmall.com/shop/shop_auction_search.htm?sort=default')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 72,
   "metadata": {},
   "outputs": [],
   "source": [
    "driver.refresh()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "metadata": {},
   "outputs": [],
   "source": [
    "driver.firefox_profile.update_preferences()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 61,
   "metadata": {},
   "outputs": [],
   "source": [
    "driver.firefox_profile.default_preferences['network.proxy.type'] = 1\n",
    "driver.firefox_profile.default_preferences['network.proxy.http'] = proxy_url\n",
    "driver.firefox_profile.default_preferences['network.proxy.http_port'] = int(port)\n",
    "driver.firefox_profile.default_preferences['network.proxy.ssl'] = proxy_url\n",
    "driver.firefox_profile.default_preferences['network.proxy.ssl_port'] = port\n",
    "driver.firefox_profile.update_preferences()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36'"
      ]
     },
     "execution_count": 39,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 73,
   "metadata": {},
   "outputs": [],
   "source": [
    "script_webdriver = '''Object.defineProperties(navigator,{\n",
    "webdriver:{\n",
    "get:() => false\n",
    "}\n",
    "})'''\n",
    "script_language = ''' Object.defineProperty(navigator, 'languages', {\n",
    "    get: () => [\"zh-CN\", \"zh\", \"en-US\", \"en\"],\n",
    "  });'''"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 74,
   "metadata": {},
   "outputs": [],
   "source": [
    "driver.execute_script(script_webdriver)\n",
    "driver.execute_script(script_language)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 75,
   "metadata": {},
   "outputs": [],
   "source": [
    "iframe = driver.find_element_by_css_selector('#sufei-dialog-content')\n",
    "driver.switch_to.frame(iframe)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 76,
   "metadata": {},
   "outputs": [],
   "source": [
    "driver.find_element_by_css_selector('#TPL_username_1').send_keys('17621780176')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 79,
   "metadata": {},
   "outputs": [],
   "source": [
    "driver.find_element_by_css_selector('#TPL_password_1').send_keys('www.,194928.,com')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 80,
   "metadata": {},
   "outputs": [],
   "source": [
    "action = ActionChains(driver)\n",
    "source=driver.find_element_by_xpath(\"//*[@id='nc_1_n1t']/span\")#需要滑动的元素\n",
    "action.click_and_hold(source).perform()\n",
    "time.sleep(0.5)\n",
    "action.move_by_offset(206,0)#需要滑动的坐标\n",
    "time.sleep(1.2)\n",
    "action.release().perform() #释放鼠标"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [],
   "source": [
    "script_refresh = 'javascript:noCaptcha.reset(1)'\n",
    "driver.execute_script(script_refresh)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 81,
   "metadata": {},
   "outputs": [],
   "source": [
    "driver.find_element_by_css_selector('#J_SubmitStatic').click()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 198,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 缺少处理如何滑动解锁的步骤"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 248,
   "metadata": {},
   "outputs": [],
   "source": [
    "driver.get('https://gu.m.tmall.com/shop/shop_auction_search.htm?suid=356060330&sort=default')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 72,
   "metadata": {},
   "outputs": [],
   "source": [
    "driver.refresh()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 73,
   "metadata": {},
   "outputs": [],
   "source": [
    "iframe = driver.find_element_by_css_selector('#sufei-dialog-content')\n",
    "driver.switch_to.frame(iframe)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [],
   "source": [
    "# iframe2 = driver.find_element_by_css_selector('#sufei-dialog-content')\n",
    "action = ActionChains(driver)\n",
    "source=driver.find_element_by_xpath(\"//*[@id='nc_1_n1t']/span\")#需要滑动的元素\n",
    "action.click_and_hold(source).perform()\n",
    "time.sleep(0.5)\n",
    "action.move_by_offset(258,0)#需要滑动的坐标\n",
    "time.sleep(1.2)\n",
    "action.release().perform() #释放鼠标"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 75,
   "metadata": {},
   "outputs": [
    {
     "ename": "NoSuchElementException",
     "evalue": "Message: Unable to locate element: #sufei-dialog-content\n",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mNoSuchElementException\u001b[0m                    Traceback (most recent call last)",
      "\u001b[1;32m<ipython-input-75-5092cc2aee1e>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0miframe2\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mdriver\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mfind_element_by_css_selector\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m'#sufei-dialog-content'\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[1;32mC:\\ProgramData\\Anaconda3\\lib\\site-packages\\selenium\\webdriver\\remote\\webdriver.py\u001b[0m in \u001b[0;36mfind_element_by_css_selector\u001b[1;34m(self, css_selector)\u001b[0m\n\u001b[0;32m    596\u001b[0m             \u001b[0melement\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mdriver\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mfind_element_by_css_selector\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m'#foo'\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    597\u001b[0m         \"\"\"\n\u001b[1;32m--> 598\u001b[1;33m         \u001b[1;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mfind_element\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mby\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mBy\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mCSS_SELECTOR\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mvalue\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mcss_selector\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    599\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    600\u001b[0m     \u001b[1;32mdef\u001b[0m \u001b[0mfind_elements_by_css_selector\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mcss_selector\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mC:\\ProgramData\\Anaconda3\\lib\\site-packages\\selenium\\webdriver\\remote\\webdriver.py\u001b[0m in \u001b[0;36mfind_element\u001b[1;34m(self, by, value)\u001b[0m\n\u001b[0;32m    976\u001b[0m         return self.execute(Command.FIND_ELEMENT, {\n\u001b[0;32m    977\u001b[0m             \u001b[1;34m'using'\u001b[0m\u001b[1;33m:\u001b[0m \u001b[0mby\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 978\u001b[1;33m             'value': value})['value']\n\u001b[0m\u001b[0;32m    979\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    980\u001b[0m     \u001b[1;32mdef\u001b[0m \u001b[0mfind_elements\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mby\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mBy\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mID\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mvalue\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;32mNone\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mC:\\ProgramData\\Anaconda3\\lib\\site-packages\\selenium\\webdriver\\remote\\webdriver.py\u001b[0m in \u001b[0;36mexecute\u001b[1;34m(self, driver_command, params)\u001b[0m\n\u001b[0;32m    319\u001b[0m         \u001b[0mresponse\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mcommand_executor\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mexecute\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mdriver_command\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mparams\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    320\u001b[0m         \u001b[1;32mif\u001b[0m \u001b[0mresponse\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 321\u001b[1;33m             \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0merror_handler\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mcheck_response\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mresponse\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    322\u001b[0m             response['value'] = self._unwrap_value(\n\u001b[0;32m    323\u001b[0m                 response.get('value', None))\n",
      "\u001b[1;32mC:\\ProgramData\\Anaconda3\\lib\\site-packages\\selenium\\webdriver\\remote\\errorhandler.py\u001b[0m in \u001b[0;36mcheck_response\u001b[1;34m(self, response)\u001b[0m\n\u001b[0;32m    240\u001b[0m                 \u001b[0malert_text\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mvalue\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'alert'\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mget\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m'text'\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    241\u001b[0m             \u001b[1;32mraise\u001b[0m \u001b[0mexception_class\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mmessage\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mscreen\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mstacktrace\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0malert_text\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 242\u001b[1;33m         \u001b[1;32mraise\u001b[0m \u001b[0mexception_class\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mmessage\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mscreen\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mstacktrace\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    243\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    244\u001b[0m     \u001b[1;32mdef\u001b[0m \u001b[0m_value_or_default\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mobj\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mkey\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mdefault\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;31mNoSuchElementException\u001b[0m: Message: Unable to locate element: #sufei-dialog-content\n"
     ]
    }
   ],
   "source": [
    "iframe2 = driver.find_element_by_css_selector('#sufei-dialog-content')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 251,
   "metadata": {},
   "outputs": [],
   "source": [
    "driver.get('https://only.m.tmall.com/shop/shop_auction_search.htm?suid=356060330&sort=default')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 98,
   "metadata": {},
   "outputs": [],
   "source": [
    "# driver.execute_script(\"window.scrollBy(0, 700)\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 77,
   "metadata": {},
   "outputs": [],
   "source": [
    "driver.execute_script(\"window.scrollTo(0, document.body.scrollHeight)\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 64,
   "metadata": {},
   "outputs": [],
   "source": [
    "for i in range(10):\n",
    "    a = i * 10000\n",
    "    b = (i+1) * 10000\n",
    "    script = \"window.scrollTo({},{})\".format(a, b)\n",
    "    driver.execute_script(script)\n",
    "    time.sleep(random.randint(1, 3) + 1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "metadata": {},
   "outputs": [],
   "source": [
    "driver.switch_to.default_content()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "metadata": {
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'name': 'isg',\n",
       " 'value': 'BHx8h1gZC9SVUD8Iw4JsnLS5ThkkJS64ag3cdVb_-WdXIR6rfIcSLVzbBYn8clj3',\n",
       " 'path': '/',\n",
       " 'domain': '.tmall.com',\n",
       " 'secure': False,\n",
       " 'httpOnly': False,\n",
       " 'expiry': 1556681684}"
      ]
     },
     "execution_count": 32,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "driver.get_cookies()[-1]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "metadata": {},
   "outputs": [],
   "source": [
    "driver.get(r'https://uniqlo.m.tmall.com/shop/shop_auction_search.do?ajson=1&_tm_source=tmallsearch&sort=s&p=20&page_size=12&from=h5&shop_id=57303596&callback=jsonp_73932125')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'<html><head></head><body>jsonp_73932125({\"shop_id\":\"57303596\",\"user_id\":\"196993935\",\"shop_title\":\"优衣库官方旗舰店\",\"total_page\":\"82\",\"shop_Url\":\"//uniqlo.tmall.com\",\"items\":[{\"item_id\":563998515765,\"title\":\"童装/男童/女童 弹力运动长裤 404638 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i2/196993935/TB1WWqxeAfb_uJkHFJHXXb4vFXa_!!0-item_pic.jpg\",\"sold\":\"1441\",\"quantity\":0,\"totalSoldQuantity\":18909,\"url\":\"//detail.m.tmall.com/item.htm?id=563998515765\",\"price\":\"149.00\",\"titleUnderIconList\":[]},{\"item_id\":571792987411,\"title\":\"女装 短裤(高腰)(三角) 410032 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i2/196993935/TB2jLnLJXGWBuNjy0FbXXb4sXXa_!!196993935-0-item_pic.jpg\",\"sold\":\"1038\",\"quantity\":0,\"totalSoldQuantity\":4563,\"url\":\"//detail.m.tmall.com/item.htm?id=571792987411\",\"price\":\"40.00\",\"titleUnderIconList\":[]},{\"item_id\":573201590405,\"title\":\"【3个月+】婴儿/新生儿 压线连体装(长袖) 411248 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i1/196993935/O1CN011ewGz9QQ5d3omRc_!!0-item_pic.jpg\",\"sold\":\"1408\",\"quantity\":0,\"totalSoldQuantity\":2545,\"url\":\"//detail.m.tmall.com/item.htm?id=573201590405\",\"price\":\"99.00\",\"titleUnderIconList\":[]},{\"item_id\":571824672708,\"title\":\"男装 优质长绒棉格子衬衫(长袖) 411836 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i1/196993935/TB28OtAIf5TBuNjSspcXXbnGFXa_!!196993935-0-item_pic.jpg\",\"sold\":\"1236\",\"quantity\":0,\"totalSoldQuantity\":2741,\"url\":\"//detail.m.tmall.com/item.htm?id=571824672708\",\"price\":\"99.00\",\"titleUnderIconList\":[]},{\"item_id\":573726275112,\"title\":\"【11.11预售】男装 法兰绒衬衫(长袖) 409283 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i4/196993935/TB2zSkjwljTBKNjSZFDXXbVgVXa_!!196993935-0-item_pic.jpg\",\"sold\":\"9831\",\"quantity\":0,\"totalSoldQuantity\":40335,\"url\":\"//detail.m.tmall.com/item.htm?id=573726275112\",\"price\":\"116.00\",\"titleUnderIconList\":[]},{\"item_id\":577950115202,\"title\":\"女装 羊毛混纺上衣(长袖) 410004 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i1/196993935/O1CN011ewGyidOZCKbY8J-196993935.jpg\",\"sold\":\"1430\",\"quantity\":0,\"totalSoldQuantity\":2014,\"url\":\"//detail.m.tmall.com/item.htm?id=577950115202\",\"price\":\"149.00\",\"titleUnderIconList\":[]},{\"item_id\":574414955396,\"title\":\"男装 法兰绒格子衬衫(长袖) 411907 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i1/196993935/O1CN011ewGz3tf4bLkEyQ_!!0-item_pic.jpg\",\"sold\":\"1515\",\"quantity\":0,\"totalSoldQuantity\":3050,\"url\":\"//detail.m.tmall.com/item.htm?id=574414955396\",\"price\":\"149.00\",\"titleUnderIconList\":[]},{\"item_id\":576734360141,\"title\":\"女装 摇粒绒连帽大衣(长袖) 412388 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i1/196993935/O1CN011ewGyrYjmzJujBi-196993935.jpg\",\"sold\":\"806\",\"quantity\":0,\"totalSoldQuantity\":1042,\"url\":\"//detail.m.tmall.com/item.htm?id=576734360141\",\"price\":\"299.00\",\"titleUnderIconList\":[]},{\"item_id\":575608813427,\"title\":\"婴儿/幼儿 仿羊羔绒连裤裙 411279 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i2/196993935/O1CN011ewGzKJ36MbsXwV_!!0-item_pic.jpg\",\"sold\":\"680\",\"quantity\":0,\"totalSoldQuantity\":999,\"url\":\"//detail.m.tmall.com/item.htm?id=575608813427\",\"price\":\"99.00\",\"titleUnderIconList\":[]},{\"item_id\":576028177254,\"title\":\"男装 法兰绒睡衣(长袖) 412587 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i3/196993935/O1CN011ewGz5LEqp6GKU7_!!0-item_pic.jpg\",\"sold\":\"903\",\"quantity\":0,\"totalSoldQuantity\":1241,\"url\":\"//detail.m.tmall.com/item.htm?id=576028177254\",\"price\":\"249.00\",\"titleUnderIconList\":[]},{\"item_id\":572622193028,\"title\":\"【特别尺码】男装 柔软圆领T恤(长袖) 408969 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i2/196993935/O1CN011ewGyRftpLvw9Hv-196993935.jpg\",\"sold\":\"1588\",\"quantity\":0,\"totalSoldQuantity\":2762,\"url\":\"//detail.m.tmall.com/item.htm?id=572622193028\",\"price\":\"99.00\",\"titleUnderIconList\":[]},{\"item_id\":573546948161,\"title\":\"女装 紧身长裤 400549 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i3/196993935/TB20LsZmHArBKNjSZFLXXc_dVXa_!!196993935-0-item_pic.jpg\",\"sold\":\"964\",\"quantity\":0,\"totalSoldQuantity\":2813,\"url\":\"//detail.m.tmall.com/item.htm?id=573546948161\",\"price\":\"79.00\",\"titleUnderIconList\":[]},{\"item_id\":571417103758,\"title\":\"男装/女装 起居拖鞋 409347 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i4/196993935/TB1tP_vy7yWBuNjy0FpXXassXXa_!!0-item_pic.jpg\",\"sold\":\"1651\",\"quantity\":0,\"totalSoldQuantity\":2807,\"url\":\"//detail.m.tmall.com/item.htm?id=571417103758\",\"price\":\"79.00\",\"titleUnderIconList\":[]},{\"item_id\":571791535445,\"title\":\"童装/男童 Ultra Stretch起居套装(长袖) 410063 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i2/196993935/O1CN011ewGzUAV3mB5DU5_!!0-item_pic.jpg\",\"sold\":\"2445\",\"quantity\":0,\"totalSoldQuantity\":4034,\"url\":\"//detail.m.tmall.com/item.htm?id=571791535445\",\"price\":\"149.00\",\"titleUnderIconList\":[]},{\"item_id\":575216126154,\"title\":\"【设计师合作款】女装 围巾 412883 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i1/196993935/O1CN011ewGyUHVjUGjQzZ-196993935.jpg\",\"sold\":\"663\",\"quantity\":0,\"totalSoldQuantity\":1523,\"url\":\"//detail.m.tmall.com/item.htm?id=575216126154\",\"price\":\"149.00\",\"titleUnderIconList\":[]},{\"item_id\":571001131451,\"title\":\"【特别尺码】婴儿/新生儿 罗纹连体装(长袖) 411702 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i1/196993935/TB1xERSuwKTBuNkSne1XXaJoXXa_!!0-item_pic.jpg\",\"sold\":\"451\",\"quantity\":0,\"totalSoldQuantity\":1099,\"url\":\"//detail.m.tmall.com/item.htm?id=571001131451\",\"price\":\"59.00\",\"titleUnderIconList\":[]},{\"item_id\":574177356256,\"title\":\"【特别尺码】男装 袋装圆领T恤(短袖) 408964 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i3/196993935/O1CN011ewGzUWfJ1Z7K3K_!!0-item_pic.jpg\",\"sold\":\"1472\",\"quantity\":0,\"totalSoldQuantity\":8440,\"url\":\"//detail.m.tmall.com/item.htm?id=574177356256\",\"price\":\"35.00\",\"titleUnderIconList\":[]},{\"item_id\":571686851451,\"title\":\"女装 BLOCKTECH大衣 409098 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i1/196993935/O1CN011ewGzJ4FCFabQaN_!!0-item_pic.jpg\",\"sold\":\"1584\",\"quantity\":0,\"totalSoldQuantity\":2093,\"url\":\"//detail.m.tmall.com/item.htm?id=571686851451\",\"price\":\"599.00\",\"titleUnderIconList\":[]},{\"item_id\":571482032997,\"title\":\"【特别尺码】女装 COMPACT COTTON圆领T恤(长袖) 408672 优衣库\",\"img\":\"//img.alicdn.com/bao/uploaded/i2/196993935/TB2isS3IkOWBuNjSsppXXXPgpXa_!!196993935-0-item_pic.jpg\",\"sold\":\"1175\",\"quantity\":0,\"totalSoldQuantity\":2598,\"url\":\"//detail.m.tmall.com/item.htm?id=571482032997\",\"price\":\"79.00\",\"titleUnderIconList\":[]},{\"item_id\":577257810405,\"title\":\"男装 便携式连帽外套 409313 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i1/196993935/O1CN011ewGzHyDHp79reV_!!0-item_pic.jpg\",\"sold\":\"1214\",\"quantity\":0,\"totalSoldQuantity\":2583,\"url\":\"//detail.m.tmall.com/item.htm?id=577257810405\",\"price\":\"249.00\",\"titleUnderIconList\":[]},{\"item_id\":572696679041,\"title\":\"童装/女童 法兰绒格子连衣裙(长袖) 412658 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i1/196993935/TB2um_EqCYTBKNjSZKbXXXJ8pXa_!!196993935-0-item_pic.jpg\",\"sold\":\"473\",\"quantity\":0,\"totalSoldQuantity\":751,\"url\":\"//detail.m.tmall.com/item.htm?id=572696679041\",\"price\":\"79.00\",\"titleUnderIconList\":[]},{\"item_id\":556031296824,\"title\":\"【11.11预售】男装 HEATTECH紧身裤 400223 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i4/196993935/O1CN011ewGz27H1h1Z3Zg-196993935.jpg\",\"sold\":\"5344\",\"quantity\":0,\"totalSoldQuantity\":156872,\"url\":\"//detail.m.tmall.com/item.htm?id=556031296824\",\"price\":\"69.00\",\"titleUnderIconList\":[]},{\"item_id\":572172654772,\"title\":\"男装 法兰绒格子衬衫(长袖) 411916 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i3/196993935/O1CN011ewGzKRld6T1rKT_!!0-item_pic.jpg\",\"sold\":\"1217\",\"quantity\":0,\"totalSoldQuantity\":2499,\"url\":\"//detail.m.tmall.com/item.htm?id=572172654772\",\"price\":\"149.00\",\"titleUnderIconList\":[]},{\"item_id\":572968708090,\"title\":\"【0-3个月】婴儿/新生儿 压线连体装(长袖) 409377 优衣库UNIQLO\",\"img\":\"//img.alicdn.com/bao/uploaded/i1/196993935/TB2dihiJr1YBuNjSszeXXablFXa_!!196993935-0-item_pic.jpg\",\"sold\":\"567\",\"quantity\":0,\"totalSoldQuantity\":1184,\"url\":\"//detail.m.tmall.com/item.htm?id=572968708090\",\"price\":\"99.00\",\"titleUnderIconList\":[]}],\"current_page\":\"20\",\"page_size\":\"24\",\"total_results\":\"1958\"})</body></html>'"
      ]
     },
     "execution_count": 50,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "driver.page_source"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.2"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
